package com.yequan.eurekaclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: yq
 * @Date: 2019/3/6 18:38
 * @Description:
 */
@RestController
@RefreshScope
public class HelloController {

    @Value("${server.port}")
    private int port;

    @RequestMapping("index")
    public String index() {
        return "Hello World!，端口： "+port;
    }


//    @RequestMapping("index")
//    public String index() {
//        return "Hello World!";
//    }

}
